/*
 * @Author: wanggaoyang wgy910528@163.com
 * @Date: 2022-08-11 21:33:27
 * @LastEditors: wanggaoyang wgy910528@163.com
 * @LastEditTime: 2022-08-11 22:43:32
 * @FilePath: \shop-admin\src\api\manger.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from "~/axios";
export const login = (username, password) => {
    return axios.post('/admin/login', {
        username,
        password
    })
}

export const getInfo = (token)=>{
    return axios.post('/admin/getinfo',{token})
}

export const logout = ()=>{
    return axios.post('/admin/logout')
}
export const rePassWord = (data)=>{
    return axios.post('/admin/updatepassword',data)
}